
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.Container和Text组件 · Gary的小窝</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gary">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="image.html" />
    
    
    <link rel="prev" href="widget1.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    写在前面
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../leetcode/">
            
                <a href="../leetcode/">
            
                    
                    Leetcode之旅
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../leetcode/1.html">
            
                <a href="../leetcode/1.html">
            
                    
                    1.两数之和
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../leetcode/2.html">
            
                <a href="../leetcode/2.html">
            
                    
                    2.两数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../leetcode/3.html">
            
                <a href="../leetcode/3.html">
            
                    
                    3.无重复字符的最长子串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../leetcode/4.html">
            
                <a href="../leetcode/4.html">
            
                    
                    4.寻找两个有序数组的中位数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../leetcode/6.html">
            
                <a href="../leetcode/6.html">
            
                    
                    6.Z字形变换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../leetcode/9.html">
            
                <a href="../leetcode/9.html">
            
                    
                    9.回文数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../leetcode/11.html">
            
                <a href="../leetcode/11.html">
            
                    
                    11.盛最多水的容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../leetcode/12.html">
            
                <a href="../leetcode/12.html">
            
                    
                    12.整数转罗马数字
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="../leetcode/13.html">
            
                <a href="../leetcode/13.html">
            
                    
                    13.罗马数字转整数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="../leetcode/14.html">
            
                <a href="../leetcode/14.html">
            
                    
                    14.最长公共前缀
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="../leetcode/322.html">
            
                <a href="../leetcode/322.html">
            
                    
                    322.零钱兑换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="../leetcode/72.html">
            
                <a href="../leetcode/72.html">
            
                    
                    72.编辑距离
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="./">
            
                <a href="./">
            
                    
                    Flutter从入门到放弃
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="dart1.html">
            
                <a href="dart1.html">
            
                    
                    1.Dart语言(1)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="dart2.html">
            
                <a href="dart2.html">
            
                    
                    2.Dart语言(2)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="widget1.html">
            
                <a href="widget1.html">
            
                    
                    3.Flutter初始化
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.4" data-path="containerText.html">
            
                <a href="containerText.html">
            
                    
                    4.Container和Text组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="image.html">
            
                <a href="image.html">
            
                    
                    5.Image组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="chapter2.html">
            
                <a href="chapter2.html">
            
                    
                    6.Flutter 技术总结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../vue/">
            
                <a href="../vue/">
            
                    
                    Vue组件精讲
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../vue/1.html">
            
                <a href="../vue/1.html">
            
                    
                    1.provide/inject
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../vue/2.html">
            
                <a href="../vue/2.html">
            
                    
                    2.手动实现broadcast和dispatch方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../js/form.html">
            
                <a href="../js/form.html">
            
                    
                    3.自己动手实现带校验的Form表单组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../js/">
            
                <a href="../js/">
            
                    
                    JavaScript进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../js/proxy.html">
            
                <a href="../js/proxy.html">
            
                    
                    1.Vue.js 3.0中的响应式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../js/el.html">
            
                <a href="../js/el.html">
            
                    
                    2.Element UI 源码初探
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../js/bind.html">
            
                <a href="../js/bind.html">
            
                    
                    3.bind的模拟实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../js/proto.html">
            
                <a href="../js/proto.html">
            
                    
                    4.JS原型和原型链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../js/call.html">
            
                <a href="../js/call.html">
            
                    
                    5.模拟实现call和apply
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../js/ui.html">
            
                <a href="../js/ui.html">
            
                    
                    6.使用Vue cli3搭建组件库并发布到 npm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../js/microFE.html">
            
                <a href="../js/microFE.html">
            
                    
                    7.记一次基于qiankun的微前端的改造
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../js/git.html">
            
                <a href="../js/git.html">
            
                    
                    8.Git的使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../vueLibrary/">
            
                <a href="../vueLibrary/">
            
                    
                    基于Vue的PC端的组件库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../vueLibrary/1.html">
            
                <a href="../vueLibrary/1.html">
            
                    
                    1.环境搭建
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../life/">
            
                <a href="../life/">
            
                    
                    网事杂谈
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../life/1.html">
            
                <a href="../life/1.html">
            
                    
                    1.周杰伦专辑赏析--叶惠美
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../life/2.html">
            
                <a href="../life/2.html">
            
                    
                    2.周杰伦专辑赏析--七里香
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >4.Container和Text组件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#container-&#x7EC4;&#x4EF6;"><b></b>Container &#x7EC4;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#text-&#x7EC4;&#x4EF6;"><b></b>Text &#x7EC4;&#x4EF6;</a></li></ul></div><a href="#container-&#x7EC4;&#x4EF6;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="container-&#x7EC4;&#x4EF6;"><a name="container-&#x7EC4;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#container-&#x7EC4;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>Container &#x7EC4;&#x4EF6;</h1>
<p> &#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x4E0A;&#x4E00;&#x7AE0;&#x7684;&#x521B;&#x5EFA;&#x51FA;&#x6765;&#x7684;MaterialApp &#x6765;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x57FA;&#x672C;&#x7684;&#x6A21;&#x677F;
 &#x5728;body &#x4E2D; &#x521B;&#x5EFA;&#x4E00;&#x4E2A;ContainerWidget</p>
<pre class="language-"><code class="lang-dart"> <span class="token keyword">import</span> <span class="token string">&apos;package:flutter/material.dart&apos;</span><span class="token punctuation">;</span>

<span class="token comment">// void main() =&gt; runApp(HelloWorld());</span>
<span class="token keyword">void</span> <span class="token function">main</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token function">runApp</span><span class="token punctuation">(</span><span class="token function">Mertial</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token comment">// Material App widget</span>
<span class="token keyword">class</span> <span class="token class-name">Mertial</span> <span class="token keyword">extends</span> <span class="token class-name">StatelessWidget</span><span class="token punctuation">{</span>
  <span class="token metadata symbol">@override</span>
  Widget <span class="token function">build</span><span class="token punctuation">(</span>BuildContext context<span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token function">MaterialApp</span><span class="token punctuation">(</span>
        home<span class="token punctuation">:</span> <span class="token function">Scaffold</span><span class="token punctuation">(</span>
          appBar<span class="token punctuation">:</span> <span class="token function">AppBar</span><span class="token punctuation">(</span>
            title<span class="token punctuation">:</span> <span class="token function">Text</span><span class="token punctuation">(</span><span class="token string">&apos;hello flutter&apos;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
          <span class="token punctuation">)</span><span class="token punctuation">,</span>
          <span class="token comment">// </span>
          body<span class="token punctuation">:</span><span class="token function">ContainerWidget</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<p> &#x6211;&#x4EEC;&#x521B;&#x5EFA;&#x8FD9;&#x4E2A;widget &#x5728;build &#x65B9;&#x6CD5;&#x4E2D;rerurn Container&#x7EC4;&#x4EF6;</p>
<pre class="language-"><code class="lang-dart"> <span class="token comment">// container</span>
<span class="token comment">// &#x5BB9;&#x5668;&#x7EC4;&#x4EF6;</span>
<span class="token comment">//child</span>
<span class="token comment">// width </span>
<span class="token comment">//height</span>
<span class="token comment">// decoration</span>

<span class="token keyword">class</span> <span class="token class-name">ContainerWidget</span> <span class="token keyword">extends</span> <span class="token class-name">StatelessWidget</span> <span class="token punctuation">{</span>
  <span class="token metadata symbol">@override</span>
  Widget <span class="token function">build</span><span class="token punctuation">(</span>BuildContext context<span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token function">Container</span><span class="token punctuation">(</span>
      child<span class="token punctuation">:</span> <span class="token function">Text</span><span class="token punctuation">(</span><span class="token string">&apos;1234567890123456789&apos;</span><span class="token punctuation">,</span>
          style<span class="token punctuation">:</span> <span class="token function">TextStyle</span><span class="token punctuation">(</span>
            color<span class="token punctuation">:</span> Colors<span class="token punctuation">.</span>red<span class="token punctuation">,</span>
            fontSize<span class="token punctuation">:</span> <span class="token number">40</span>
          <span class="token punctuation">)</span><span class="token punctuation">,</span>
          textAlign<span class="token punctuation">:</span> TextAlign<span class="token punctuation">.</span>center<span class="token punctuation">,</span>
          overflow<span class="token punctuation">:</span> TextOverflow<span class="token punctuation">.</span>ellipsis<span class="token punctuation">,</span>
          maxLines<span class="token punctuation">:</span><span class="token number">2</span><span class="token punctuation">,</span>
          textScaleFactor<span class="token punctuation">:</span> <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">)</span><span class="token punctuation">,</span>
      width<span class="token punctuation">:</span><span class="token number">200</span><span class="token punctuation">,</span>
      height<span class="token punctuation">:</span> <span class="token number">300</span><span class="token punctuation">,</span> 
      decoration<span class="token punctuation">:</span> <span class="token function">BoxDecoration</span><span class="token punctuation">(</span>
        color<span class="token punctuation">:</span> Colors<span class="token punctuation">.</span>yellow<span class="token punctuation">,</span>
        border<span class="token punctuation">:</span> Border<span class="token punctuation">.</span><span class="token function">all</span><span class="token punctuation">(</span>
          color<span class="token punctuation">:</span> Colors<span class="token punctuation">.</span>blue<span class="token punctuation">,</span>
          width<span class="token punctuation">:</span> <span class="token number">2</span>
        <span class="token punctuation">)</span>
      <span class="token punctuation">)</span><span class="token punctuation">,</span> 
    <span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<p> &#x6211;&#x4EEC;Container &#x7EC4;&#x4EF6;&#x4E2D;&#x6709;&#x4E00;&#x4E9B;&#x5C5E;&#x6027;</p>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th>&#x529F;&#x80FD;</th>
</tr>
</thead>
<tbody>
<tr>
<td>alignment</td>
<td>&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;</td>
</tr>
<tr>
<td>decoration</td>
<td>&#x88C5;&#x9970;&#x5C5E;&#x6027;</td>
</tr>
<tr>
<td>margin</td>
<td>&#x5916;&#x8FB9;&#x8DDD; EdgeInsets.all(20.0),</td>
</tr>
<tr>
<td>padding</td>
<td>&#x5185;&#x8FB9;&#x8DDD; padding: EdgeInsets.all(10.0)</td>
</tr>
<tr>
<td>transform</td>
<td>&#x8BA9; Container &#x5BB9;&#x6613;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x65CB;&#x8F6C;&#x4E4B;&#x7C7B;&#x7684;</td>
</tr>
<tr>
<td>height</td>
<td>&#x5BB9;&#x5668;&#x9AD8;&#x5EA6;</td>
</tr>
<tr>
<td>width</td>
<td>&#x5BB9;&#x5668;&#x5BBD;&#x5EA6;</td>
</tr>
<tr>
<td>child</td>
<td>&#x5BB9;&#x5668;&#x5B50;&#x5143;&#x7D20;</td>
</tr>
</tbody>
</table>
<p>&#x5173;&#x4E8E;Container&#x7684;&#x66F4;&#x591A;&#x5C5E;&#x6027; &#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x5B98;&#x65B9;&#x6587;&#x6863;</p>
<h1 id="text-&#x7EC4;&#x4EF6;"><a name="text-&#x7EC4;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#text-&#x7EC4;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>Text &#x7EC4;&#x4EF6;</h1>
<p>&#x521A;&#x521A;&#x7684;&#x4EE3;&#x7801;&#x4E2D;&#x6211;&#x4EEC;&#x5728;Container&#x7684;child&#x5C5E;&#x6027;&#x91CC; &#x521B;&#x5EFA;&#x4E86;&#x4E00;&#x4E2A;Text&#x7EC4;&#x4EF6;
text&#x7EC4;&#x4EF6;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5C5E;&#x6027;&#x662F;text&#x7684;&#x6587;&#x5B57;&#x5185;&#x5BB9; &#x8FD8;&#x6709;&#x4E00;&#x4E9B;&#x88C5;&#x9970;&#x5C5E;&#x6027;
|  &#x540D;&#x79F0;   | &#x529F;&#x80FD;  |
|  ----  | ----  |
| textAlign  | &#x6587;&#x672C;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;&#xFF08; center &#x5C45;&#x4E2D;&#xFF0C; left &#x5DE6;
&#x5BF9;&#x9F50;&#xFF0C; right &#x53F3;&#x5BF9;&#x9F50;&#xFF0C; justfy &#x4E24;&#x7AEF;&#x5BF9;&#x9F50;&#xFF09; |
| textDirection  | &#x6587;&#x672C;&#x65B9;&#x5411;&#xFF08; ltr &#x4ECE;&#x5DE6;&#x81F3;&#x53F3;&#xFF0C; rtl &#x4ECE;&#x53F3;&#x81F3;
&#x5DE6;&#xFF09;   |
| overflow  | &#x6587;&#x5B57;&#x8D85;&#x51FA;&#x5C4F;&#x5E55;&#x4E4B;&#x540E;&#x7684;&#x5904;&#x7406;&#x65B9;&#x5F0F;&#xFF08; clip
&#x88C1;&#x526A;&#xFF0C; fade &#x6E10;&#x9690;&#xFF0C; ellipsis &#x7701;&#x7565;&#x53F7;&#xFF09; |
| textScaleFactor  | &#x5B57;&#x4F53;&#x663E;&#x793A;&#x500D;&#x7387; |
| maxLines  | &#x6587;&#x5B57;&#x663E;&#x793A;&#x6700;&#x5927;&#x884C;&#x6570; |
| style  | &#x5B57;&#x4F53;&#x7684;&#x6837;&#x5F0F;&#x8BBE;&#x7F6E; &#x4F7F;&#x7528;TextStyle &#x7C7B; |</p>
<p>TextStyle &#x7684;&#x53C2;&#x6570; &#xFF1A;
|  &#x540D;&#x79F0;   | &#x529F;&#x80FD;  |
|  ----  | ----  |
| decoration  | &#x6587;&#x5B57;&#x88C5;&#x9970;&#x7EBF;&#xFF08; none &#x6CA1;&#x6709;&#x7EBF;&#xFF0C; lineThrough &#x5220;
&#x9664;&#x7EBF;&#xFF0C; overline &#x4E0A;&#x5212;&#x7EBF;&#xFF0C; underline &#x4E0B;&#x5212;&#x7EBF;&#xFF09; |
| decorationColor  | &#x6587;&#x5B57;&#x88C5;&#x9970;&#x7EBF;&#x989C;&#x8272;   |
| decorationStyle  | &#x6587;&#x5B57;&#x88C5;&#x9970;&#x7EBF;&#x98CE;&#x683C;&#xFF08; dashed,dotted&#xFF0C;double &#x4E24;&#x6839;&#x7EBF;&#xFF0C; solid &#x4E00;&#x6839;&#x5B9E;&#x7EBF;&#xFF0C; wavy &#x6CE2;&#x6D6A;&#x7EBF;&#xFF09; |
| wordSpacing  | &#x5355;&#x8BCD;&#x95F4;&#x9699;&#xFF08; &#x5982;&#x679C;&#x662F;&#x8D1F;&#x503C;&#xFF0C; &#x4F1A;&#x8BA9;&#x5355;&#x8BCD;&#x53D8;&#x5F97;&#x66F4;&#x7D27;&#x51D1; |
| letterSpacing  | &#x5B57;&#x6BCD;&#x95F4;&#x9699;&#xFF08; &#x5982;&#x679C;&#x662F;&#x8D1F;&#x503C;&#xFF0C; &#x4F1A;&#x8BA9;&#x5B57;&#x6BCD;&#x53D8;&#x5F97;&#x66F4;&#x51D1;&#xFF09; |
| fontStyle  | &#x6587;&#x5B57;&#x6837;&#x5F0F;&#xFF08; italic &#x659C;&#x4F53;&#xFF0C; normal &#x6B63;&#x5E38;&#x4F53;&#xFF09; |
| fontSize  | &#x6587;&#x5B57;&#x5927;&#x5C0F; |
| color  | &#x6587;&#x5B57;&#x989C;&#x8272; |
| fontWeight  | &#x5B57;&#x4F53;&#x7C97;&#x7EC6;&#xFF08; bold &#x7C97;&#x4F53;&#xFF0C; normal &#x6B63;&#x5E38;&#x4F53;&#xFF09; |</p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; YoungGary 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-01-03 16:31:06
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="widget1.html" class="navigation navigation-prev " aria-label="Previous page: 3.Flutter初始化">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="image.html" class="navigation navigation-next " aria-label="Next page: 5.Image组件">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"4.Container和Text组件","level":"1.3.4","depth":2,"next":{"title":"5.Image组件","level":"1.3.5","depth":2,"path":"flutter/image.md","ref":"flutter/image.md","articles":[]},"previous":{"title":"3.Flutter初始化","level":"1.3.3","depth":2,"path":"flutter/widget1.md","ref":"flutter/widget1.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-comscore","prism","-highlight","copy-code-button","search-pro","-search","-lunr","expandable-chapters","splitter","-sharing","tbfed-pagefooter","anchor-navigation-ex"],"styles":{},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy YoungGary 2019","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"],"lang":{"shell":"bash"}},"splitter":{},"search-pro":{},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":false},"theme-comscore":{},"copy-code-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Gary","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Gary的小窝","language":"zh-hans","gitbook":"*","description":"Gary的小窝. 里面包含了个人撰写的技术文章"},"file":{"path":"flutter/containerText.md","mtime":"2020-01-03T08:31:06.068Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-09-09T14:10:10.930Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

